package com.wkbb.common.utils;

public class GradeUtil {

    /**
     * 获取年级类型
     * */
    public static Short getGradeType(Integer orgType) {

        //5幼儿园 6小学 7中职 8初中 9高中 10高职 11本科 12培训学校
        Integer gradeType = 10;
        switch (orgType) {
            case 5:   //幼儿园
                gradeType = 1;
                break;
            case 6:   //小学
                gradeType = 2;
                break;
            case 7:
                gradeType = 3;
                break;
            case 8: //初中
                gradeType = 4;
                break;
            case 9: //高中
                gradeType = 5;
                break;
            case 10:
                gradeType = 6;
                break;
            case 11:
                gradeType = 7;
                break;
            case 14: //九年一贯
                gradeType = 9;
                break;
            case 15: //十二年一贯
                gradeType = 10;
                break;
            default:
                gradeType = 10;
                break;
        }

        return gradeType.shortValue();
    }

}
